package com.yan.domain;

import com.yan.domain.A;
import com.yan.domain.B;

public class C implements A, B {
    public int a;
    public int b;
    @Override
    public void show() {
        System.out.println(add(a,b));
    }

    @Override
    public int add(int a, int b) {
        this.a = a;
        this.b = b;
        return a + b;
    }
}
